<?php

jimport('joomla.application.component.view');
/**
 * HTML View class for the server Component
 */
class ServerViewServer extends JView
{
    function display($tpl = null)
    {
        $model = &$this->getModel();
        $rows = $model->getServerList('1');

        $optsel = "1";

        if (isset($_POST["categorid"])) {
            $rows = $model->getServerList(JRequest::getVar('categorid', '1'));
            $optsel = JRequest::getVar('categorid', "1");
        }

        $this->assignRef('optsel', $optsel);
        $this->assignRef('rows', $rows);

        parent::display($tpl);
    }
}

?>
